﻿#pragma once

#include"teTimeTrigger.h"
#include"teAiFlowEngine.h"

#include <opencv2/opencv.hpp>
using namespace cv;

using namespace std;


struct AIResult
{
    double threshold_score;
    std::vector<std::vector<cv::Point>> contour;
    string  name;
	float width;
	float height;
	float area=0;
	float x;
	float y;
};



class  AIDll
{
public:

    TeAiFlowEngine m_engine;//    TeAiFlowEngine    
    vector <string> m_vector_node;
    bool loadPorjectFiles(string path, std::vector<string> node, int image_width, int image_height,int channel, string& message);

    int predictImage(Mat mat_image, vector<vector<AIResult>>& result);
};


extern bool dl_3_init();
extern bool dl_3_end();
extern vector<AIDll*> vector_dl_3;

